package com.gxa.ssm251.service.impl;

import com.gxa.ssm251.mapper.ManagePointsVoMapper;
import com.gxa.ssm251.pojo.vo.ManagePointsVo;
import com.gxa.ssm251.service.ManagePointsVoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 舒空
 */
@Service("managePointsVoService")
public class ManagePointsVoServiceImpl implements ManagePointsVoService {
    @Resource
    ManagePointsVoMapper managePointsVoMapper;

    @Override
    public List<ManagePointsVo> selectAllByPage(Integer page, Integer size) {
        return managePointsVoMapper.selectAllByPage(page,size);
    }

    @Override
    public List<ManagePointsVo> selectAll() {
        return managePointsVoMapper.selectAll();
    }

    @Override
    public ManagePointsVo selectById(Integer id) {
        return managePointsVoMapper.selectById(id);
    }

    @Override
    public Integer update(ManagePointsVo managePointsVo) {
        return managePointsVoMapper.update(managePointsVo);
    }

    @Override
    public List<ManagePointsVo> selectLikeNameOrPhone(String param) {
        return managePointsVoMapper.selectLikeNameOrPhone(param);
    }
}
